package com.ling.sdk.http

abstract class ApiCallBack<T> {

    open fun onCompleted() {}

    abstract fun onSuccess(data: T)

    @Deprecated("不要用")
    open fun onError(errorCode: String) {
        onError(errorCode, errorCode)
    }

    abstract fun onError(errorCode: String, message: String? = null)

}